package com.hw.weathershow.middleware;

import com.hw.weathershow.entity.Weather;
import com.hw.weathershow.mapper.WeatherMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2022/12/3 22:33
 */

@SpringBootTest
public class Mysql {
    @Autowired
    WeatherMapper weatherMapper;
    @Test
    public void connect(){

    }
    @Test
    public void findAll() {
        List<Weather> users = weatherMapper.selectList(null);
        System.out.println(users);
    }
}
